package com.yxkj.syh.app.huarong.activities.account.forgot_pwd;

import android.app.Application;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.alibaba.android.arouter.launcher.ARouter;
import com.syh.app.basic.base.view_model.BaseViewModel;
import com.syh.app.basic.bindingAdp.view_click.ClickEvent;
import com.trello.rxlifecycle2.android.ActivityEvent;
import com.yxkj.syh.app.huarong.constants.ArouterPath;

/**
 * 创建者：SYH
 * 时间：2020/5/19 15:12
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public class ForgotPwdVM extends BaseViewModel<ActivityEvent> {

    public ForgotPwdVM(@NonNull Application application) {
        super(application);
    }

    public ObservableField<String> ofPhone = new ObservableField<>();
    public ObservableField<String> ofVerCode = new ObservableField<>();
    public ObservableField<String> ofGetVerCode = new ObservableField<>();
    public ObservableField<Boolean> ofVerCodeEnable = new ObservableField<>(Boolean.FALSE);
    public ObservableField<Boolean> ofLoginEnable = new ObservableField<>(Boolean.FALSE);

    public ClickEvent verCodeClick = new ClickEvent() {
        @Override
        public void onClick(View view) {

        }
    };
    public ClickEvent nextClick = new ClickEvent() {
        @Override
        public void onClick(View view) {
            ARouter.getInstance().build(ArouterPath.RESET_PWD_ACTIVITY).navigation();
        }
    };

}
